import { createAction } from "redux-actions"




export const add_product_to_cart = createAction('add_product_to_cart')
export const add_product_to_cart_success = createAction('add_product_to_cart_success')


export const get_product_from_cart = createAction('get_product_from_cart')
export const get_product_from_cart_success = createAction('get_product_from_cart_success')

// 向服务器端发送请求，告诉服务器端要删除那个商品
export const delete_product_from_cart = createAction('delete_product_from_cart')
// 删除本地购物车商品
export const delete_product_from_cart_success = createAction('delete_product_from_cart_success')

// 修改商品数量 向服务器端发送请求  更新本地的购物车数量
export const modify_cart_mount = createAction('modify_cart_mount')
export const modify_cart_mount_success = createAction('modify_cart_mount_success')